<wx:page
 class="x-page"
 id="page"
 style="background-color:#F3F3F3"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/shangpin1"
 id="restData1"
 label="商品"
 limit="-1"
 url="/dbrest">
<filter
 _filter_label="卖家ID 等于 restData.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/"
 id="restDatafilter"
 name="_system1_">eq('fmaijiaid',restData.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/)</filter></wx:restData></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="true"
 autoLogin="true"
 id="user"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default0"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default1"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default2"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default3">
<expr
 id="default4">true</expr></readonly></rule></wx:restData></wx:user></wx:inVisibleCompContainer>
<wx:list
 _created="true"
 id="list"
 index="listindex"
 item="listitem"
 items="restData1.value"
 label="动态列表"
 style="width:361px;height:304px">
<view
 id="view6">
<wx:row
 class="x-row"
 id="row1"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.openPageDialog&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/shangpin_xq.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:listitem.fid}&quot;}}">
<wx:col
 class="x-col x-col-fixed"
 id="col3">
<wx:image
 bind:src="listitem.ftupian"
 class="weui-img"
 id="image1"
 mode="scaleToFill"
 style="width:80px;height:80px"/></wx:col>
<wx:col
 class="x-col"
 id="col4"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:row
 class="x-row"
 id="row4"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:col
 class="x-col"
 id="col12">
<wx:text
 bind:text="listitem.fmingcheng"
 id="text3">名称</wx:text></wx:col></wx:row>
<wx:row
 class="x-row"
 id="row5">
<wx:col
 class="x-col x-col-fixed"
 id="col19">
<wx:text
 id="text4">原价：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col16"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:text
 bind:text="listitem.fshichangj"
 id="text6">值</wx:text></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col17">
<wx:text
 id="text5">现价：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col18">
<wx:text
 bind:text="listitem.fjiage"
 id="text7">值</wx:text></wx:col></wx:row></wx:col></wx:row>
<wx:row
 class="x-row"
 id="row2"
 style="text-align: right">
<wx:col
 class="x-col"
 id="col6">
<wx:button
 class="wx-btn"
 id="button4"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.openPageDialog&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/shangpin_xq.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:listitem.fid}&quot;}}"
 size="mini">
<wx:icon
 id="icon4"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view7">查看详情</view></wx:button></wx:col>
<wx:col
 bind:hidden="wx.Util.iif(listitem.fkucun&gt;0,false,true)"
 class="x-col x-col-fixed"
 id="col7">
<wx:button
 bind:disabled="wx.Util.iif(listitem.fkucun&gt;0,false,true)"
 class="wx-btn"
 id="button5"
 on:tap="[{&quot;operation&quot;:&quot;commonOperation.setValue&quot;,&quot;args&quot;:{&quot;item&quot;:&quot;listitem.fkucun&quot;,&quot;data&quot;:&quot;restData1&quot;,&quot;col&quot;:&quot;fkucun&quot;,&quot;value&quot;:&quot;js:0&quot;,&quot;row&quot;:&quot;js:listitem&quot;}},{&quot;operation&quot;:&quot;commonOperation.saveData&quot;,&quot;args&quot;:{&quot;data&quot;:&quot;restData1&quot;}}]"
 size="mini"
 type="warn">
<wx:icon
 id="icon5"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view8">下架</view></wx:button></wx:col>
<wx:col
 bind:hidden="wx.Util.iif(listitem.fkucun&lt;=0,false,true)"
 class="x-col x-col-fixed"
 id="col8">
<wx:button
 bind:disabled="wx.Util.iif(listitem.fkucun&lt;=0,false,true)"
 class="wx-btn"
 id="button6"
 on:tap="[{&quot;operation&quot;:&quot;commonOperation.setValue&quot;,&quot;args&quot;:{&quot;item&quot;:&quot;listitem.fkucun&quot;,&quot;data&quot;:&quot;restData1&quot;,&quot;col&quot;:&quot;fkucun&quot;,&quot;value&quot;:&quot;js:1&quot;,&quot;row&quot;:&quot;js:listitem&quot;}},{&quot;operation&quot;:&quot;commonOperation.setValue&quot;,&quot;args&quot;:{&quot;item&quot;:&quot;listitem.fshangjiasj&quot;,&quot;data&quot;:&quot;restData1&quot;,&quot;col&quot;:&quot;fshangjiasj&quot;,&quot;value&quot;:&quot;js:wx.Date.now()&quot;,&quot;row&quot;:&quot;js:listitem&quot;}},{&quot;operation&quot;:&quot;commonOperation.saveData&quot;,&quot;args&quot;:{&quot;data&quot;:&quot;restData1&quot;}}]"
 size="mini"
 type="primary">
<wx:icon
 id="icon6"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view9">重新上架</view></wx:button></wx:col></wx:row></view></wx:list></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}